package com.kgc.rb.exception;


public enum  GoodsException {
    /**
     * 抢购商品的状态
     */
    REPEAT_BUY(1100,"抱歉，您已经购买该商品"),
    BUY_SUCCESS(1101,"恭喜你幸运儿，成功的抢购商品"),
    GOODS_STOCK_INSUFFICIENT(1102,"对不起，该商品已经售罄，库存不足！"),
    GOODS_IS_GETTING(1103,"正在使命抢购中.....");

    GoodsException(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
